/*
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-07-08 16:19:33
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-10-17 11:07:21
 */
import { Entity, Column, PrimaryGeneratedColumn,DeleteDateColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
//这一步是将数据放在指定数据表里面Entity("数据表名称")
@Entity('owner')
export class Owner {

  @ApiProperty({
    description: 'id', default: null, type: 'number',
    example: 1, required: false,
    // enum: [0, 1],
  })
  @PrimaryGeneratedColumn()
  id: number;

  @ApiProperty({ description: '软删除标记', default: false,type:'boolean' })
  @Column({
    nullable: false, default: false
  })
  withDeleted: boolean;
    

    

}